<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>模拟提交</title>
</head>
<body>
<input type="button" id="button" value="确定">
<div id="show"></div>
<script src="https://lib.sinaapp.com/js/jquery/2.0.2/jquery-2.0.2.min.js"></script>
<script>
    $('#button').click(function () {
        let id  = 1;
        $.ajax({
            type:"GET",
            data:{
                'id':id,
                'type':4
            },
            url : "http://127.0.0.1:8000/dt/"+id,
            success : function (res) {
                 console.log(res);
                 $('#show').html(res);
            }
        })
    })
</script>
</body>
</html>